<template>
  <div id="container2" />
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
const initBdMap = () => {
  const BMap = (window as any).BMapGL
  const map = new BMap.Map('container2')
  const point = new BMap.Point(118.43093852790834, 29.876613529599215)
  map.centerAndZoom(point, 15)
  map.enableScrollWheelZoom(true)
  map.setHeading(64.5) //设置地图旋转角度
  map.setTilt(73) //设置地图的倾斜角度
}
onMounted(() => {
  initBdMap()
})
</script>

<style scoped>
#container2 {
  width: 100%;
  height: 100%;
}
</style>
